import request from '@/utils/request'

export function listWebCategory(query) {
  return request({
    url: '/webcategory/list',
    method: 'get',
    params: query
  })
}

export function listCatL1() {
  return request({
    url: '/webcategory/l1',
    method: 'get'
  })
}

export function createWebCategory(data) {
  return request({
    url: '/webcategory/create',
    method: 'post',
    data
  })
}

export function readWebCategory(data) {
  return request({
    url: '/webcategory/read',
    method: 'get',
    data
  })
}

export function updateWebCategory(data) {
  return request({
    url: '/webcategory/update',
    method: 'post',
    data
  })
}

export function deleteWebCategory(data) {
  return request({
    url: '/webcategory/delete',
    method: 'post',
    data
  })
}
